<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>welcome</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
        <link rel="stylesheet" href="STATIC/css/font.css">
        <link rel="stylesheet" href="STATIC/css/xadmin.css">
    </head>
    <body>
        <div class="x-body">
            <blockquote class="layui-elem-quote">网上预约开放式实验室管理系统</blockquote>
            <fieldset class="layui-elem-field">
              <legend>信息统计</legend>
              <div class="layui-field-box">
                <table class="layui-table" lay-even>
                    <thead>
                        <tr>
                            <th>统计</th>
                            <th>教师数</th>
                            <th>学生数</th>
                            <th>实验室数</th>
                            <th>已预约实验室数</th>
                            <th>已预约教师学生总数</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>数量</td>
                            <td>{$numbers['tea']}</td>
                            <td>{$numbers['stu']}</td>
                            <td>{$numbers['lab']}</td>
                            <td>{$numbers['tea_lab']}</td>
                            <td>{$numbers['stu_tea']}</td>
                        </tr>

                    </tbody>
                </table>
                <table class="layui-table">
                <thead>
                    <tr>
                        <th colspan="2" scope="col">服务器信息</th>
                    </tr>
                </thead>
                <tbody>

                    <tr>
                        <td>服务器域名</td>
                        <td><?php echo $_SERVER['HTTP_HOST'];?></td>
                    </tr>
                    <tr>
                        <td>服务器IP</td>
                        <td><?php echo ($_SERVER['REMOTE_ADDR']);?></td>
                    </tr>
                    <tr>
                        <td>服务器操作系统</td>
                        <td><?PHP echo PHP_OS; ?></td>
                    </tr>
                    <tr>
                        <td>服务器信息 </td>
                        <td><?PHP echo $_SERVER ['SERVER_SOFTWARE']; ?></td>
                    </tr>


                    <tr>
                        <td>语言种类 </td>
                        <td>PHP</td>
                    </tr>
                    <tr>
                        <td>PHP 版本 </td>
                        <td><?PHP echo PHP_VERSION; ?></td>
                    </tr>

                    <tr>
                        <td>ZEND版本 </td>
                        <td><?php echo $systemInfo['zendversion'] = zend_version(); ?></td>
                    </tr>
                    <tr>
                        <td>MYSQL是否持续连接 </td>
                        <td><?php echo @get_cfg_var("mysql.allow_persistent")?"是 ":"否"; ?></td>
                    </tr>
                    <tr>
                        <td>脚本运行占用最大内存 </td>
                        <td><?php echo  $systemInfo['memorylimit'] = get_cfg_var("memory_limit") ? get_cfg_var("memory_limit") : '-'; ?></td>
                    </tr>


                </tbody>
            </table>
              </div>
            </fieldset>

        </div>
    </body>
</html>